import CrudApi from "@/core/CrudApi";
import CrudController, {type CrudConfig} from "@/components/CatCrud/CrudController";
import {Generics} from "@/core/decorators/Generics";
import {User, UserParam} from "./UserParam";

export class UserApi extends CrudApi<User, void, UserParam> {
    constructor() {
        super('/user');
    }
}

export interface UserConfig extends CrudConfig<User, void, UserParam> {
}

@Generics({V: User, S: UserParam, API: UserApi})
export default class UserController extends CrudController<User, void, UserParam, UserConfig, UserApi> {
}